package com.itheima.d2_ThreadPool_Callable;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<String> {
    @Override
    public String call() throws Exception {
        int sum = 0;
        for (int i = 0; i < 100; i++) {
            sum+=i;
        }
        return  Thread.currentThread().getName()+ ":" +sum;
    }
}
